import pdfplumber # 可用于从pdf文件中读取内容

with pdfplumber.open('测试.pdf') as pdf:
    for page in pdf.pages:
        print(page.extract_text())
        print(f'======第{page.page_number}页的内容')